package com.yisu.auction.api.core.mapper;

import com.yisu.auction.ewf.entity.Advertisement;
import com.yisu.auction.api.domain.request.indexPackage.AdvertisementRequest;
import com.yisu.auction.api.domain.vo.indexPackageVos.AdvertisementVo;

import java.util.List;

public interface AdvertisementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Advertisement record);

    int insertSelective(Advertisement record);

    Advertisement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Advertisement record);

    int updateByPrimaryKey(Advertisement record);

    /**
     * author: 赵杰
     * Business Description：获取首页广告位接口
     * @param advertisementRequest 含AppSign
     * @return
     */
    List<AdvertisementVo> getAdvertisementList(AdvertisementRequest advertisementRequest);
}